aboutsummaryrefslogtreecommitdiffstats
path: root/python2-numpydoc [disowned]/watch
diff options
context:
space:
mode:
Diffstat (limited to 'python2-numpydoc [disowned]/watch')
-rwxr-xr-xpython2-numpydoc [disowned]/watch20
1 files changed, 20 insertions, 0 deletions
diff --git a/python2-numpydoc [disowned]/watch b/python2-numpydoc [disowned]/watch
new file mode 100755
index 0000000..d51351b
--- /dev/null
+++ b/python2-numpydoc [disowned]/watch
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+[ -f 'index.html' ] && rm 'index.html'
+wget https://pypi.python.org/pypi/numpydoc >/dev/null 2>/dev/null
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ grep numpydoc- < index.html | md5sum > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'python2-numpydoc'
+ fi
+ rm index.html
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'python2-numpydoc (unfetchable)'
+fi
+